package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DataxEndGroupMapper;
import com.ruoyi.system.domain.DataxEndGroup;
import com.ruoyi.system.service.IDataxEndGroupService;
import com.ruoyi.common.core.text.Convert;

/**
 * 数据交换组Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-10-04
 */
@Service
public class DataxEndGroupServiceImpl implements IDataxEndGroupService 
{
    @Autowired
    private DataxEndGroupMapper dataxEndGroupMapper;

    /**
     * 查询数据交换组
     * 
     * @param id 数据交换组主键
     * @return 数据交换组
     */
    @Override
    public DataxEndGroup selectDataxEndGroupById(Long id)
    {
        return dataxEndGroupMapper.selectDataxEndGroupById(id);
    }

    /**
     * 查询数据交换组列表
     * 
     * @param dataxEndGroup 数据交换组
     * @return 数据交换组
     */
    @Override
    public List<DataxEndGroup> selectDataxEndGroupList(DataxEndGroup dataxEndGroup)
    {
        return dataxEndGroupMapper.selectDataxEndGroupList(dataxEndGroup);
    }

    /**
     * 新增数据交换组
     * 
     * @param dataxEndGroup 数据交换组
     * @return 结果
     */
    @Override
    public int insertDataxEndGroup(DataxEndGroup dataxEndGroup)
    {
        return dataxEndGroupMapper.insertDataxEndGroup(dataxEndGroup);
    }

    /**
     * 修改数据交换组
     * 
     * @param dataxEndGroup 数据交换组
     * @return 结果
     */
    @Override
    public int updateDataxEndGroup(DataxEndGroup dataxEndGroup)
    {
        return dataxEndGroupMapper.updateDataxEndGroup(dataxEndGroup);
    }

    /**
     * 批量删除数据交换组
     * 
     * @param ids 需要删除的数据交换组主键
     * @return 结果
     */
    @Override
    public int deleteDataxEndGroupByIds(String ids)
    {
        return dataxEndGroupMapper.deleteDataxEndGroupByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除数据交换组信息
     * 
     * @param id 数据交换组主键
     * @return 结果
     */
    @Override
    public int deleteDataxEndGroupById(Long id)
    {
        return dataxEndGroupMapper.deleteDataxEndGroupById(id);
    }
}
